package com.ctg.itrdc.sysmgr.portal.data.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.ctg.itrdc.pasp.data.dao.BaseDao;
import com.ctg.itrdc.sysmgr.portal.data.IOrganizationDao;
import com.ctg.itrdc.sysmgr.portal.data.entity.Organization;
import com.ctg.itrdc.sysmgr.portal.data.vo.OrganizationVO;

@Component("organizationDao")
public class OrganizationDaoImpl extends BaseDao<Organization, Long> implements IOrganizationDao {

	@Override
	public List<OrganizationVO> selectSub(Organization organization,
			List<Long> idList) {
		Map<String,Object> model = new HashMap<String,Object>(2);
		model.put("org", organization);
		model.put("idList", idList);
		return super.queryBySqlId("selectSub", OrganizationVO.class, model, null);
	}

	
}